package  katris.selenium.tests.applogic0;

import java.util.List;

import  katris.selenium.tests.applogic.FilmHelper;
import  katris.selenium.tests.model.Film;
import katris.selenium.tests.model.User;

public class FilmHelper0 implements FilmHelper {
	
	  private Film film;

  @Override
  public void create(Film film) {
	  if (film.getTitle().equals("")&&film.getYear().equals("")) {
	      return;
	    }
	  this.film = film;

  }

  @Override
  public void delete(Film film) {
	  this.film = film;

  }

  @Override
  public void search(Film basicFilm, Film film) {

	  this.film = film;
  }
  
  @Override
  public boolean checkPresence(Film film) {
    return film != null;
  }
 
  @Override
  public boolean checkNotPresence(Film film) {
    return film != null;
  }
 
  
  @Override
  public boolean checkShortInfo(Film film) {
    return this.film.getTitle().equals(film.getTitle())&&film.getYear().equals(film.getYear());
  }
  
  public boolean checkIfRequiredDataIsSet(){
	  return film == null;
  }
  
}
